package Game.entity;

import Game.functions.Collidable;
import Game.functions.Hitable;
import Game.functions.Recyclable;

public class BrickWall extends Element implements Collidable, Hitable, Recyclable {

    private String path = "15-Tankwar\\images\\wall.gif";

    public BrickWall() {

    }

    public BrickWall(int x, int y) {
        this.x = x;
        this.y = y;
        super.path = this.path;
        super.hp = 2;
        getSize();

    }

    @Override
    public Blast showBlast() {
        hp--;
        return new Blast(x, y, width, height);
    }

    @Override
    public boolean isOutside() {
        return hp <= 0;
    }
}
